package com.itheima.demo.demo07.Demo7CS;

import com.itheima.demo.Demo06.Runable;

public class Test_6 {

        public int start = 1;
        public int end = 99;
        public static void main (String[] args) {
            new Test_6 ().method();
        }
        public void method() {
//请在此处插入代码，实现功能
            Runnable a=new Runable();
            System.out.println(start);
            for (int i = 2; i <=98 ; i++) {
                System.out.println(i);
            }
            System.out.println(end);
            Thread t = new Thread( a);
            t.start();
        }
    }


